package edu.sctu.practice.class01.zhengsenwen.assign.assign03.test02;

import edu.sctu.practice.class01.zhengsenwen.JavaLesson.firstday.Constant;

/**
 * Created by zhengsenwen on 2015/10/29.
 */
public class Cylinder extends Circle {

    public float redius = 0.0f;
    public float area = 0.0f;
    public float height = 0.0f;

    public Cylinder(float redius, float height) {
        super(redius);
        this.height = height;
    }
    @Override
    public float getRedius() {
        return redius;
    }

    @Override
    public void setRedius(float redius) {
        this.redius = redius;
    }

    public float getHeight() {
        return height;
    }

    public void setHeight(float height) {
        this.height = height;
    }


    public float getArea(float redius,float height) {
        return redius * redius * Constant.PI * height;
    }

    @Override
    public void setArea(float area) {
        this.area = area;
    }
}
